﻿@model SDSystem.Models.CKEditor
@{
    ViewBag.Title = "DemoEditor";
}
@using Ext.Net.MVC;
@using Ext.Net;
@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section ToolbarSection{
    @(Html.X().ButtonGroup().Items(
        Html.X().Button().Text("Save").Icon(Icon.Disk).DirectEvents(
        de=>
            {
                de.Click.Url = Url.Action("DemoEditor");
                de.Click.EventMask.ShowMask = true;
                de.Click.FormID = "CreateForumView";
            }),
        Html.X().Button().Text("Back").Icon(Icon.PreviousGreen)
        ))
}




@(Html.X().FormPanel()
      .ID("CreateForumView")
      .BodyPadding(5)
      .Items(
          Html.X().FieldSet().Title("Form Details").Layout(LayoutType.Form).Padding(5).Items(
              Html.X().HtmlEditorFor(m => m.Content).ID("ckeContent1").FieldLabel("Description").Height(150).LabelWidth(100).LabelAlign(LabelAlign.Top)
              )))
